@import '../variable.scss';
@import '../mixins.scss';
/*
  主页面
*/
.home {
  @include wrapper;
  .position {
    @include ellipsis;
    position: relative;
    margin-right: .24rem;
    padding: .16rem .24rem .16rem 0;
    line-height: .22rem;
    font-size: .16rem;
    color: $content-fontcolor;
    .icon-position {
      position: relative;
      top: .01rem;
      margin-right: .085rem;
      font-size: .2rem;
    }
    .icon-bell {
      position: absolute;
      right: 0;
      top: .17rem;
    }
  }
  &__search {
    margin-bottom: .12rem;
    line-height: .32rem;
    background-color: $search-bgColor;
    color: $search-fontColor;
    border-radius: .16rem;
    font-size: .14rem;
    .icon-search {
      display: inline-block;
      padding: 0 .12rem 0 .16rem;
      font-size: .16rem;
    }
    &__text {
      display: inline-block;
      font-size: .14rem;
    }
  }
  .banner {
    height: 0;
    overflow: hidden;
    padding-bottom: 25.4%;
    img {
      width: 100%;
    }
  }
  .icons {
    display: flex;
    flex-wrap: wrap;
    margin-top: .16rem;
    &__item {
      width: 20%;
      img {
        display: block;
        width: .4rem;
        height: .4rem;
        margin: 0 auto;
      }
      p {
        margin: .06rem 0 .16rem 0;
        text-align: center;
        color: $content-fontcolor;
      }
    }
  }
  .gap {
    margin: 0 -.18rem;
    height: .1rem;
    background: $content-bgColor;
  }
  .nearby {
    &__title {
      margin: .16rem 0 .02rem 0;
      font-size: .18rem;
      font-weight: normal;
      color: $content-fontcolor;
    }
  }
}
